//----------------------------------Include-------------------------------------
#include "mcu.h"
#include "board.h"
//------------------------------------------------------------------------------

//--------------------------------Public Func-----------------------------------
void brd_init(void)
{
  mcu_int_disable();
  mcu_sys_clock();
  mcu_init_systick();
  
  mcu_init_do();
  
  mcu_init_uart1(9600);
  
  //mcu_init_i2c2();
  //brd_init_24c16();
  
  mcu_init_spi_sw();
  brd_init_hlw8112();
  
  //mcu_init_tim6();
  
  mcu_init_adc();
  mcu_init_tim3();    //adc trigger
  
  mcu_int_enable();
}
//------------------------------------EOF---------------------------------------



